
let text = "abc";

var FishLineBase = require("FishLineBase");
cc.Class({
    extends: cc.Component,

    properties: {
        label: {
            default: null,
            type: cc.Label
        },
        // defaults, set visually when attaching this script to the Canvas
        text: 'Hello, World!',
        fishLineBase: {
            default: null,
            type: FishLineBase

        },
    },

    // use this for initialization
    onLoad: function () {
        this.label.string = this.text;
        // cc.log("Hello World begin");
    },
   

    // called every frame
    update: function (dt) {

    },
});
module.exports = {text,
     testLog:function(){
        cc.log("Hello World begin");
        cc.log("the text is "+ text);
    },
    setText :function(tempText){
        text = tempText;
    }
}